package priv.conceit.sc.hoxton.common.entity.auth.authority.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author conceit
 * @since 2020-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("auth_authority_user")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 工号
     */
    private String jobNumber;

    /**
     * 身份证
     */
    private String identityCardNo;

    /**
     * 密码
     */
    private String password;

    /**
     * 默认密码是否更新 0否 1是
     */
    private Boolean defaultPasswordIsUpdate;

    /**
     * 性别
     */
    private Boolean gender;

    /**
     * 头像id
     */
    private String headPortraitId;

    /**
     * 部门id
     */
    private Integer deptId;

    /**
     * 手机号
     */
    private String phoneNo;

    /**
     * 座机号
     */
    private String fixedPhoneNo;

    /**
     * 生日
     */
    private LocalDate birthday;

    private String email;

    private LocalDateTime ctime;

    private LocalDateTime utime;

    private Long createUserId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 用户类型 0国华用户 1承包商用户
     */
    private Integer type;

    /**
     * 是否删除 0 为否 1为是
     */
    private Boolean del;


}
